package com.gkj.blog.business.vo.entity;

import com.gkj.blog.framework.object.BaseEntityVo;
import com.gkj.blog.persistence.po.ArticleArchives;
import com.gkj.blog.persistence.po.PvUv;

import java.util.List;

public class ArticleArchivesVo{

    private ArticleArchives articleArchives;

    private List<ArticleVo> articleVoList;


    public String getDay() {
        String time = getDatetime();
        return time.substring(time.lastIndexOf("-") + 1);
    }

    public ArticleArchivesVo() {
        articleArchives=new ArticleArchives();
    }

    public ArticleArchivesVo(ArticleArchives articleArchives) {
        this.articleArchives = articleArchives;
    }

    public ArticleArchives getArticleArchives() {
        return articleArchives;
    }

    public List<ArticleVo> getArticleVoList() {
        return articleVoList;
    }

    public void setArticleVoList(List<ArticleVo> articleVoList) {
        this.articleVoList = articleVoList;
    }

    public Long getId() {
        return articleArchives.getId();
    }

    public void setId(Long id) {
        articleArchives.setId(id);
    }

    public String getTitle() {
        return articleArchives.getTitle();
    }

    public void setTitle(String title) {
        articleArchives.setTitle(title);
    }

    public String getOriginal() {
        return articleArchives.getOriginal();
    }

    public void setOriginal(String original) {
        articleArchives.setOriginal(original);
    }

    public String getDatetime() {
        return articleArchives.getDatetime();
    }

    public void setDatetime(String datatime) {
        articleArchives.setDatetime(datatime);
    }

}
